package com.swn.common.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class GetApplicationContext {

	/** 
	 * @Title: main 
	 * @Description: TODO(获取ApplicationContext) 
	 * @param @param args    设定文件
	 * @return void    返回类型
	 * @author chenql  
	 * @date 2015-12-21 下午5:32:54 
	 * @throws 
	 */

	public static ApplicationContext getApplicationContext(){
		ApplicationContext ctx = new ClassPathXmlApplicationContext("spring.xml");
		return ctx;
	}
	@SuppressWarnings("unused")
	public static void main(String[] args) {
		
	}

}
